package com.atguign.gulimall.order.feign;

import com.atguign.gulimall.order.vo.WareSkuLockVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: gulimall
 * @description: 会员
 * @author: liuxvru
 * @create: 2024-02-19 17:30
 **/
@FeignClient("gulimall-ware")
public interface WareFeifnService {
    @RequestMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
    @GetMapping("/ware/waresku/fare")
    R getFare(@RequestParam("attrId") Long attrId);
    @PostMapping("/ware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);
}
